<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>商品管理 - 导出商品</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
<link rel="stylesheet" type="text/css" href="/style/assets/plugins/bootstrap-datetimepicker/css/datetimepicker.css" />
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 导出商品 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> <a href="/channel/channelgoods">商品管理</a> <i class="icon-angle-right"></i> </li>
          <li>导出商品</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-9"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"> <i class="icon-reorder"></i> 导出商品 </div>
            <div class="tools"> <a href="" class="collapse"></a> </div>
          </div>
          <div class="portlet-body form">
            <form method="get" class="form-horizontal" id="forms" action="/channel/exportBatch"> 
            <div class="form-body"> 

             <div class="form-group">
                <label  class="col-md-3 control-label">商品名称<span class="required"></span></label>
                <div class="col-md-6">
                  <input type="text" name="goods_name"   class="form-control" value="<?=$this->data['para']['goods_name'];?>" placeholder="请输入商品名称">
                  </div>
              </div>
              <div class="form-group">
                  <label class="col-md-3 control-label">是否上架</label>
                  <div class="col-md-6">
                     <select name="is_on_sale"  class="form-control">
                        <option value="">请选择是否上架</option>
                        <option value="1" <?php if($this->data['para']['is_on_sale']=="1"){ echo "selected" ; } ?> >是</option>
                        <option value="0" <?php if($this->data['para']['is_on_sale']=="0"){ echo "selected" ; } ?> >否</option>
   
                  </select>
                  </div>
                </div>               
              <div class="form-group">、
                  <label class="col-md-3 control-label">选择商品分类</label>
                  <div class="col-md-6">
                    <select class="form-control" name="caid" id="caid">
                    <option value="">商品分类</option>
                      <?php
                      if($this->cate){
                          foreach($this->cate[0] as $k=> $r){
                              if(isset($this->data['para']['caid']) && $k==$this->data['para']['caid']) $slk = ' selected';
                              else $slk = '';

                                $newcate[$r['caid']] = $r['name'];
                              ?>
                              <option value="<?=$r['caid'];?>"<?=$slk;?>><?=$r['name'];?></option>
                              <?php
                              if($this->cate[$r['caid']]){
                                  foreach($this->cate[$r['caid']] as $j=>$s){
                                      if(isset($this->data['para']['caid']) && $j==$this->data['para']['caid']) $slk = ' selected';
                                      else $slk = '';
                                      ?>
                                      <option value="<?=$s['caid'];?>"<?=$slk;?>>&nbsp;&nbsp;&nbsp;&nbsp;<?=$s['name'];?></option>
                                      <?
                                  }
                              }?>
                              <?
                          }
                      }
                      ?>

                  </select>
                  </div>
                </div>    


                <div class="form-group">
                  <label class="col-md-3 control-label">选择商品品牌</label>
                  <div class="col-md-6">
                    <select class="form-control" name="brand_id" id="brand_id">
                      <option value="">商品品牌</option>
                      <?php
                      if($this->brand){
                          foreach($this->brand as $k=> $r){
                              if(isset($this->data['para']['brand_id']) && $k==$this->data['para']['brand_id']) $slk = ' selected';
                              else $slk = '';
                              ?>
                              <option value="<?=$k;?>"<?=$slk;?>><?=$r['name'];?></option>
                              <?
                          }
                      }
                      ?>
                  </select>
                  </div>
                </div>    

            <!--                 
                <div class="form-group">
                  <label class="col-md-3 control-label">选择供应商</label>
                  <div class="col-md-6">
                    <select name="supplier_id" id="_supplier_id" class="form-control">
                            <option value="">选择供应商</option>
                            <?php
                            if($this->supplier){
                              foreach($this->supplier as $r){
                              ?>
                                <option value="<?=$r['id'];?>"><?=$r['supplier'];?></option>
                              <?
                              }
                            }             
                            ?>
                          </select>
                  </div>
                </div>
                -->                    
              </div>
              <div class="form-actions fluid">
                <div class="col-md-offset-3 col-md-9">
                  <button type="button" class="btn blue" onclick="chkfrm()">导出商品</button>
                  <button type="button" class="btn default" onClick="history.back(1);">取消</button>
                </div>
              </div>
            </form>
          </div>
        </div>
        <!-- END SAMPLE FORM PORTLET--> 
        
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script type="text/javascript" src="/style/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script> 
<script type="text/javascript" src="/style/assets/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script>
var handleDatetimePicker = function () {
  $(".form_datetime").datetimepicker({
    language:'zh-CN',
    autoclose: true,
    format: "yyyy-mm-dd hh:ii"
  }); 
  $('body').removeClass("modal-open"); // fix bug when inline picker is used in modal
}
$(document).ready(function(e) {    
   App.init();  
   handleDatetimePicker();  
});

function chkfrm()
{

  $('#forms').submit();
}

</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>